﻿using KalevaAalto.DataPart.Enums;
using OfficeOpenXml.Style;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KalevaAalto.DataPart.Models
{
    public class Font : IFont
    {

        public FontWeight Weight { get; set; } = FontWeight.Thin;
        public float Size { get; set; } = 11;
        public string Name { get; set; } = @"宋体";
        public Color Color { get; set; } = Color.Black;
        public UnderLineStyle UnderLine { get; set; } = UnderLineStyle.None;

    }

    public interface IFont
    {

        public FontWeight Weight { get; set; }
        public float Size { get; set; }
        public string Name { get; set; }
        public UnderLineStyle UnderLine {  get; set; }

        public Color Color { get; set; }


        public void Prase(IFont font)
        {
            Weight = font.Weight;
            Size = font.Size;
            Name = font.Name;
            Color = font.Color;
            UnderLine = font.UnderLine;
        }

    }
}
